<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GuildServiceQuery: guildservicequery/logic/guild_brief_logic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GuildServiceQuery
   &#160;<span id="projectnumber">0.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ba8e298e92d91cb915c1b23ae4a74d60.html">guildservicequery</a></li><li class="navelem"><a class="el" href="dir_50032eff4b82cddcc436cd5c7f598f89.html">logic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">guild_brief_logic.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef GUILD_BRIEF_LOGIC_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define GUILD_BRIEF_LOGIC_H</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;error/error_code.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;guild/guild.h&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">struct </span>GuildModuleBrief;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>guild_service {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classguild__service_1_1_guild_brief_logic.html">   40</a></span>&#160;<span class="keyword">class </span><a class="code" href="classguild__service_1_1_guild_brief_logic.html">GuildBriefLogic</a> {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_brief_logic.html#af423b5c5c59e41ddf6522282d18b806b">GetGuildModuleBrief</a>(<span class="keyword">const</span> guild_id_type guild_id, GuildModuleBrief &amp;brief);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_brief_logic.html#ac9cd20d137db5703c9476f02ee5941b3">GetGuildModuleBriefByRole</a>(<span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                                        GuildModuleBrief &amp;brief,</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                                        error_code &amp;ec);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_brief_logic.html#a3211fb22c17db685d57f8ee41ad39fce">GetGuildIdByRole</a>(<span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                               guild_id_type &amp;guild_id);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_brief_logic.html#a692580c02a22a4d75644671043416875">GetGuildBriefList</a>(<span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                                std::size_t count,</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                                std::vector&lt;GuildModuleBrief&gt; &amp;brief_list,</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                                error_code &amp;ec);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classguild__service_1_1_guild_brief_logic.html#a7516a48581d9f31bd0b09a88b38193ff">SearchGuild</a>(<span class="keyword">const</span> role_uuid_type role_uuid,</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                          <span class="keyword">const</span> std::string &amp;name, GuildModuleBrief &amp;brief,</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                          error_code &amp;ec);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keyword">using</span> ForeachGuildBriefCallbackType = std::function&lt;bool(</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      <span class="keyword">const</span> GuildModuleBrief &amp;)&gt;;  </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> ForeachGuildBrief(<span class="keyword">const</span> ForeachGuildBriefCallbackType &amp;callback);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}  <span class="comment">// namespace guild_service</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#endif  // GUILD_BRIEF_LOGIC_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html">guild_service::GuildBriefLogic</a></div><div class="ttdoc">公会简略信息逻辑类</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.h:40</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html_a3211fb22c17db685d57f8ee41ad39fce"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html#a3211fb22c17db685d57f8ee41ad39fce">guild_service::GuildBriefLogic::GetGuildIdByRole</a></div><div class="ttdeci">static bool GetGuildIdByRole(const role_uuid_type role_uuid, guild_id_type &amp;guild_id)</div><div class="ttdoc">获取公会id</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.cpp:38</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html_ac9cd20d137db5703c9476f02ee5941b3"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html#ac9cd20d137db5703c9476f02ee5941b3">guild_service::GuildBriefLogic::GetGuildModuleBriefByRole</a></div><div class="ttdeci">static bool GetGuildModuleBriefByRole(const role_uuid_type role_uuid, GuildModuleBrief &amp;brief, error_code &amp;ec)</div><div class="ttdoc">Get the Guild Brief object.</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.cpp:20</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html_af423b5c5c59e41ddf6522282d18b806b"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html#af423b5c5c59e41ddf6522282d18b806b">guild_service::GuildBriefLogic::GetGuildModuleBrief</a></div><div class="ttdeci">static bool GetGuildModuleBrief(const guild_id_type guild_id, GuildModuleBrief &amp;brief)</div><div class="ttdoc">获取公会简略信息模块</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.cpp:14</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html_a692580c02a22a4d75644671043416875"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html#a692580c02a22a4d75644671043416875">guild_service::GuildBriefLogic::GetGuildBriefList</a></div><div class="ttdeci">static bool GetGuildBriefList(const role_uuid_type role_uuid, std::size_t count, std::vector&lt; GuildModuleBrief &gt; &amp;brief_list, error_code &amp;ec)</div><div class="ttdoc">Get the Guild Brief List object.</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.cpp:43</div></div>
<div class="ttc" id="aclassguild__service_1_1_guild_brief_logic_html_a7516a48581d9f31bd0b09a88b38193ff"><div class="ttname"><a href="classguild__service_1_1_guild_brief_logic.html#a7516a48581d9f31bd0b09a88b38193ff">guild_service::GuildBriefLogic::SearchGuild</a></div><div class="ttdeci">static bool SearchGuild(const role_uuid_type role_uuid, const std::string &amp;name, GuildModuleBrief &amp;brief, error_code &amp;ec)</div><div class="ttdoc">获取公会简略信息</div><div class="ttdef"><b>Definition:</b> guild_brief_logic.cpp:66</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
